<?php
require_once('mysql_connect.php');
if (!isset($_SESSION['userid'])){
	header("Location:login.php");
	exit();
}

$loc ="byactor";

    $querythree = "SELECT * FROM actor ORDER BY name";
    $resultthree = @mysql_query($querythree);

include('top.php');
?>
<TABLE><TR><TD>
<?php
if(mysql_num_rows($resultthree) > 0){
?>	
	<BR><FONT FACE="Verdana" size="4">Actors:</FONT><UL>
	<?php
	while($actorrow = mysql_fetch_array($resultthree)){
	?>
	<FONT FACE="Verdana" size="-1"><LI></FONT><A HREF="viewactor.php?id=<?php echo $actorrow['id'];?>"><FONT FACE="Verdana" size=-1 color=000000><?php echo $actorrow['name'];?></FONT></A>
	<?php
	}
	?>
	</UL><BR>
<?php
}
?>

</TD></TR></TABLE>
<?php
include('bot.php');
?>